package com.cros.utilities;

public class NumbersHelper {
	
	public  static boolean containsOnlyNumbers(String str) { 
		if (str == null || str.length() == 0 ) 
		return false; 
		for ( int i = 0 ; i < str.length(); i++) { 
			if (!Character.isDigit(str.charAt(i))) 
				return false ; 
		} 
		return true ; 
		} 
	
	public static int randomBetweenTwoNumbers(int min, int max){
		return min + (int)(Math.random() * ((max - min) + 1));
	}


}
